<template>
  <div>
    <van-button
      type="primary"
      loading-type="spinner"
      :loading="loading"
      @click="fn"
      loading-text="加载中..."
      >普通按钮</van-button
    >
  </div>
</template>

<script>
export default {
  name: "CollectPage",
  data() {
    return {
      loading: false,
    };
  },
  methods: {
    fn() {
      this.loading = true;
      setTimeout(() => {
        this.loading = false;
      }, 3000);
    },
  },
};
</script>
